<?php
namespace app\admin\controller;
use think\Loader;
class Order extends Base{

   //订单列表
   public function order_list(){
       $invoking     = Loader::model('Order','service');
       $data         = $invoking->orderList();
       $this->assign('list', $data['list']);
       $this->assign('page', $data['page']);
       $this->assign('post', $data['post']);
       return $this->fetch();
   }

   //订单详情
    public function order_details(){
        $invoking     = Loader::model('Order','service');
        $data         = $invoking->orderFind();
        $this->assign('data', $data);
        return $this->fetch();
    }

    //服务列表
    public function serve_list(){
        $invoking     = Loader::model('Order','service');
        $data         = $invoking->orderServeList();
        $this->assign('list', $data['list']);
        $this->assign('page', $data['page']);
        $this->assign('post', $data['post']);
        return $this->fetch();
    }

    //服务详情
    public function serve_details(){
        $invoking     = Loader::model('Order','service');
        $data         = $invoking->seveFind();
        $this->assign('data', $data);
        return $this->fetch();
    }

    //服务新增
    public function serve_any(){
        $invoking     = Loader::model('Order','service');
        $list         = $invoking->counselorList();
        $this->assign('list', $list);
        return $this->fetch();
    }
}
